﻿@model BrnMall.Web.StoreAdmin.Models.OrderAfterServiceListModel

@section header{
<title>售后服务-订单管理</title>
<link type="text/css" rel="stylesheet" href="/admin_store/css/site.css"/>
<script type="text/javascript" src="/admin_store/scripts/jquery.js"></script>
<script type="text/javascript" src="/components/my97datepicker/WdatePicker.js"></script>
<link rel="stylesheet" type="text/css"  href="/components/jbox/Skins/Default/jbox.css"/>
<script type="text/javascript" src="/components/jbox/jquery.jBox-2.3.min.js"></script>
<script type="text/javascript" src="/admin_store/scripts/selectlist.js"></script>
<script type="text/javascript" src="/admin_store/scripts/showlist.js"></script>
}

@section body{
<h1 class="rightH1">
    微信小程序 &gt; 订单管理 &gt; <span class="rightH1-cur">售后服务</span> 
<div class="right">
<div class="clear"></div>
</div>
<div class="clear"></div>
</h1>
@using (Html.BeginForm("afterservicelist", "order"))
{
<div class="dataListSearch">
    <table height="32">
        <tbody class="col3">
            <tr>
                
                <td class="td1">状态：@Html.DropDownListFor(x => x.State, Model.StateList)</td>
                <td class="td2">订单编号：@Html.TextBox("oid", Model.Oid, new { height = "18" })</td>
                <td class="td3">账号名称：@Html.TextBox("AccountName", Model.AccountName, new { height = "18" })</td>
                <td><input id="SearchOrder" name="SearchOrder" type="image" class="searchBut submit" src="/admin_store/images/s.jpg" /></td>
            </tr>
            <tr>
                <td>类型：@Html.DropDownListFor(x => x.Type, Model.TypeList)</td>
                <td>开始时间：@Html.TextBox("applyStartTime", Model.ApplyStartTime, new { height = "18", onfocus = "WdatePicker({el:'applyStartTime'})" })</td>
                <td colspan="2">结束时间：@Html.TextBox("applyEndTime", Model.ApplyEndTime, new { height = "18", onfocus = "WdatePicker({el:'applyEndTime'})" })</td>
                
            </tr>
        </tbody>
    </table>
</div>

<div class="dataList">
<table width="100%">
<thead>
  <tr>
    <th width="10" align="center"></th>
    <th width="39" align="left">编号</th>  
    <th align="left">商品</th>
    <th width="80" align="left">金额</th>  
    <th width="80" align="left">数量</th>  
    <th width="80" align="left">类型</th>  
    <th width="120" align="left">状态</th>  
    <th width="140" align="left">申请时间</th>
    <th width="70" align="left">管理操作</th>
    </tr>
</thead>
  <tbody>
  @foreach (DataRow row in Model.OrderAfterServiceList.Rows)
  {
  <tr>
    <td align="center"></td>
    <td>@row["asid"]</td>
    <td>@row["pname"]</td>
    <td>@row["money"]</td>
    <td>@row["count"]</td>
    <td>
        @switch ((OrderAfterServiceState)(TypeHelper.ObjectToInt(row["state"])))
        {
            case OrderAfterServiceState.Checking:
            @:审核中
            break;
            case OrderAfterServiceState.CheckAgree:
            @:审核通过
            break;
            case OrderAfterServiceState.CheckRefuse:
            @:审核拒绝
            break;
            case OrderAfterServiceState.Sended:
            @:客户已邮寄
            break;
            case OrderAfterServiceState.Received:
            @:商城已收货
            break;
            case OrderAfterServiceState.Backed:
            @:商城已发货
            break;
            case OrderAfterServiceState.Completed:
            @:完成
            break;
            default:
            @:未知状态
            break;
        }
    </td>
    <td>
        @switch (TypeHelper.ObjectToInt(row["type"]))
        {
            case 0:
            @:退货
            break;
            case 1:
            @:换货
            break;
            case 2:
            @:维修
            break;
            default:
            @:未知状态
            break;
        }
    </td>
    <td>@row["applytime"]</td>
    <td>
        @Html.ActionLink("查看", "orderafterserviceinfo", new { asId = row["asid"] }, new { @class = "editOperate" })
    </td>
    </tr>
  }
</tbody>
</table>
</div>
<div class="dataListEdit">
<div class="page">
    @Html.MallAdminPager(Model.PageModel)
</div>
</div>
}
}